package com.wn.mapper;

import com.wn.common.pojo.MaxAndMinLatAndLng;
import com.wn.common.pojo.Resteraunt;
import com.wn.common.pojo.TravelRoute;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ResterauntMapper {
    List<Resteraunt> getByCityRegionCode(Integer regioncode);//根据城市id查询该地的饭店

    int deleteByPrimaryKey(Integer id);

    int deleteByPrimaryKey(Resteraunt record);

    int insert(Resteraunt record);

    int insertSelective(Resteraunt record);

    Resteraunt selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Resteraunt record);

    int updateByPrimaryKeyWithBLOBs(Resteraunt record);

    int updateByPrimaryKey(Resteraunt record);

    void insertTempResteraunt(@Param("detailId") Integer detailId, @Param("resterauntId") Integer resterauntId);//添加目的地详情和酒店的中间表

    //查询所有的方法
    List<Resteraunt> queryAll();

    //高级检索的方法
    public List<Resteraunt> superSearch(String superSearchKeyWord);

    //修改状态
    int updateNewsinfo(@Param("id") Integer id,@Param("status") Integer status);

    List<Resteraunt> getResProductByLatAndLng(MaxAndMinLatAndLng neighPosition);

    int addTravelRoute(TravelRoute travelRoute);
}
